package com.hh.storeRoom.mapper;/*
 * @Description:TODO 描述
 * @Author: tongZhao
 * @date: 2023/8/16
 */

import com.hh.storeRoom.bean.StoreAreaStatus;
import com.hh.storeRoom.bean.StoreRoom;
import com.hh.storeRoom.vo.StoreRoomAddVo;
import com.hh.storeRoom.vo.StoreRoomUpdateStatusVo;
import com.hh.storeRoom.vo.StoreRoomUpdateVo;
import com.hh.storeRoom.vo.StoreRoomVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StoreRoomMapper {

    List<StoreRoom> getStoreRoomByPage(StoreRoomVo storeRoomVo);

    Integer getTotalSize();

    Integer getCountByCode(String code);

    Integer getCountByName(String name);

    void add(StoreRoomAddVo storeRoomAddVo);

    Integer getCountByName2(StoreRoomUpdateVo storeRoomUpdateVo);

    void update(StoreRoomUpdateVo storeRoomUpdateVo);

    void updateStatus(StoreRoomUpdateStatusVo storeRoomUpdateStatusVo);

    Boolean checkStatus(String code);

    List<StoreAreaStatus> getstatusList(String code);

    List<StoreAreaStatus> getstatusList2(Integer id);

}
